<?php

/*
 For Table
 --- Searching
 Get userID
*/
function getUserID($value){
    $db = new Database;
    $getName = $db->query("SELECT * FROM tbuser where firstname LIKE '%$value' OR middlename LIKE '%$value' OR lastname LIKE '%$value'","array");
    foreach($getName as $name){
        return $name['id'];
    }
}

?>